﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MOWebSerivce.Helper
{
    public class AntiDuplicateMO
    {
        private static int max_buffer_guid_mo = 10000;
        List<string> _guiID;
        public AntiDuplicateMO()
        {
            _guiID = new List<string>();
        }
        public void AddMoGuid(string moGuid)
        {
            if (_guiID.Count > max_buffer_guid_mo)
                _guiID.RemoveAt(_guiID.Count - 1);
            _guiID.Add(moGuid);
        }
        public bool isDuplicateGuidMo(string moGuid)
        {
            return _guiID.Contains(moGuid);
        }
    }
}